package mydemo.springcloudalibaba.cousumer.order.service;

import mydemo.springcloudalibaba.api.common.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import java.util.UUID;

@Component
@FeignClient(value = "CLOUD-PAYMENT-HYSTRIX-SERVICE",fallback = PaymentOpenFiegnService_ForHystrixFallback.class)
public interface PaymentOpenFiegnService_ForHystrix {
    @RequestMapping("/payment/get/{id}")
    public CommonResult getPaymentById_success(@PathVariable("id") Long id);
    @RequestMapping("/payment/error/{id}")
    public CommonResult getPaymentById_error(@PathVariable("id") Long id);


}
